Optimal. Leaf size=148 \[ \frac {a (c+d x)^{m+1}}{d (m+1)}-\frac {b e^{i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (-\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {i f (c+d x)}{d}\right )}{2 f}-\frac {b e^{-i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {i f (c+d x)}{d}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3317, 3308, 2181} \[ -\frac {b e^{i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (-\frac {i f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,-\frac {i f (c+d x)}{d}\right )}{2 f}-\frac {b e^{-i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (\frac {i f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,\frac {i f (c+d x)}{d}\right )}{2 f}+\frac {a (c+d x)^{m+1}}{d (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2181
Rule 3308
Rule 3317
Rubi steps
\begin {align*} \int (c+d x)^m (a+b \sin (e+f x)) \, dx &=\int \left (a (c+d x)^m+b (c+d x)^m \sin (e+f x)\right ) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+b \int (c+d x)^m \sin (e+f x) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {1}{2} (i b) \int e^{-i (e+f x)} (c+d x)^m \, dx-\frac {1}{2} (i b) \int e^{i (e+f x)} (c+d x)^m \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}-\frac {b e^{i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (-\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {i f (c+d x)}{d}\right )}{2 f}-\frac {b e^{-i \left (e-\frac {c f}{d}\right )} (c+d x)^m \left (\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {i f (c+d x)}{d}\right )}{2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.21, size = 138, normalized size = 0.93 \[ \frac {1}{2} (c+d x)^m \left (\frac {2 a (c+d x)}{d (m+1)}-\frac {b e^{i \left (e-\frac {c f}{d}\right )} \left (-\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {i f (c+d x)}{d}\right )}{f}-\frac {b e^{-i \left (e-\frac {c f}{d}\right )} \left (\frac {i f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {i f (c+d x)}{d}\right )}{f}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 136, normalized size = 0.92 \[ -\frac {{\left (b d m + b d\right )} e^{\left (-\frac {d m \log \left (\frac {i \, f}{d}\right ) + i \, d e - i \, c f}{d}\right )} \Gamma \left (m + 1, \frac {i \, d f x + i \, c f}{d}\right ) + {\left (b d m + b d\right )} e^{\left (-\frac {d m \log \left (-\frac {i \, f}{d}\right ) - i \, d e + i \, c f}{d}\right )} \Gamma \left (m + 1, \frac {-i \, d f x - i \, c f}{d}\right ) - 2 \, {\left (a d f x + a c f\right )} {\left (d x + c\right )}^{m}}{2 \, {\left (d f m + d f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (f x + e\right ) + a\right )} {\left (d x + c\right )}^{m}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.10, size = 0, normalized size = 0.00 \[ \int \left (d x +c \right )^{m} \left (a +b \sin \left (f x +e \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ b \int {\left (d x + c\right )}^{m} \sin \left (f x + e\right )\,{d x} + \frac {{\left (d x + c\right )}^{m + 1} a}{d {\left (m + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (a+b\,\sin \left (e+f\,x\right )\right )\,{\left (c+d\,x\right )}^m \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \sin {\left (e + f x \right )}\right ) \left (c + d x\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________